package com.leesche.zcsp.node.web.vo.v2;

import com.leesche.zcsp.node.web.vo.Attributes;

import java.util.ArrayList;
import java.util.List;

/**
 * @author dennies yang
 * @version V1.0
 * @Title: Menu.java
 * @Package com.leesche.zcsp.center.web.bean
 * @Description:()
 * @date 2016年9月22日 下午12:23:59
 */
public class Menu {
    private Long id;
    private String text;
    private com.leesche.zcsp.node.web.vo.Attributes Attributes;
    private List<Menu> children = new ArrayList<Menu>();

    private boolean isParent;


    public Menu() {
        super();
        // TODO Auto-generated constructor stub
    }

    public Menu(Long id, String text, String url,String iconPath) {
        super();
        this.id = id;
        this.text = text;
        this.Attributes = new Attributes(url,iconPath);
    }


    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getText() {
        return this.text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Attributes getAttributes() {
        return this.Attributes;
    }

    public void setAttributes(Attributes attributes) {
        this.Attributes = attributes;
    }

    public List<Menu> getChildren() {
        return this.children;
    }

    public void setChildren(List<Menu> children) {
        this.children = children;
    }

    public void add(Menu menu) {
        this.children.add(menu);
    }

    public boolean isParent() {
        return isParent;
    }

    public void setParent(boolean parent) {
        isParent = parent;
    }
}
